<%--
   processButtons
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ attribute name="businessKey" required="true" rtexprvalue="true"
	type="java.lang.String" description="业务表的Key"%>
<%@ attribute name="processKey" required="true" rtexprvalue="true"
	type="java.lang.String" description="流程的Key"%>
<%@ attribute name="processId" required="true" rtexprvalue="true"
	type="java.lang.String" description="任务Id(processId)"%>
<%@ attribute name="formId" required="false" rtexprvalue="true"
	type="java.lang.String" description="formId"%>
<%@ attribute name="beforeSubmit" required="false" rtexprvalue="true"
	type="java.lang.String" description="点击按钮后的事件"%>
<%@ attribute name="afterInit" required="false" rtexprvalue="true"
	type="java.lang.String" description="按钮初始化后执行"%>
<%@ attribute name="isValidateFun" required="false" rtexprvalue="true"
	type="java.lang.String" description="流程按钮是否校验事件"%>
<%@ attribute name="viewOnly" required="false" rtexprvalue="true"
	type="java.lang.Boolean" description="是否用于查看"%>
<%@ attribute name="areHideProcessBtn" required="false"
	rtexprvalue="true" type="java.lang.Boolean" description="是否隐藏流程提交按钮"%>
<%@ attribute name="autoEntryNext" required="false" rtexprvalue="true"
	type="java.lang.Boolean" description="是否autoEntryNext"%>
<c:set var="beforeSubmit"
	value="${empty beforeSubmit?false:beforeSubmit }"></c:set>
<c:set var="afterInit"
	value="${empty afterInit?false:afterInit }"></c:set>
<c:set var="isValidateFun"
	value="${empty isValidateFun?false:isValidateFun }"></c:set>
<c:set var="viewOnly" value="${empty viewOnly?false:viewOnly }"></c:set>
<c:set var="areHideProcessBtn" value="${empty areHideProcessBtn?false:areHideProcessBtn }"></c:set>
<c:set var="autoEntryNext"
	value="${empty autoEntryNext?false:autoEntryNext }"></c:set>
<div id="divProcessButton" class="processButtons finish"></div>
<script type="text/javascript">
	$("#divProcessButton").processButton({
		formId:"${formId}",
		businessKey : "${businessKey}",
		processKey : "${processKey}",
		processId : "${processId}",
		viewOnly :  ${viewOnly} ,
		areHideProcessBtn:${areHideProcessBtn},
		beforeSubmit:${beforeSubmit},
		isValidate_:${isValidateFun},
		autoEntryNext:${autoEntryNext},
		afterInit:${afterInit}
		
	});
</script>
